package com.chen.fegin;

import com.chen.config.auth.OAuth2FeignConfig;
import com.chen.dto.AdminBankDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author: chen
 * @Date: 2021/5/13 5:16 PM
 * @Version 1.0
 */
@FeignClient(value = "admin-server",
        contextId = "adminBank",
        configuration = OAuth2FeignConfig.class,
        path = "/adminBanks")
public interface AdminBankFegin {

    @GetMapping("/getAdminBank")
    AdminBankDto getAdminBank();
}
